package com.woniuxy.activiti.mapper;

import com.woniuxy.entity.EnterpriseCredit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xilei 张鹏
 * @create 2021--15 14:15
 */
@Mapper
public interface EnterpriseCreditMapper {


    int insertCredit(EnterpriseCredit enterpriseCredit);

    //根据id修改状态
    int startTask(int id);

    // 根据id修改状态
    int endTask(int id);

    void updateCredit(@Param("opinionResult") boolean opinionResult, @Param("opinionComment") String opinionComment);

    //根据id查询企业授信
    EnterpriseCredit selectCreditById(int id);

    //查询企业授信表根据业务员id
    List<EnterpriseCredit> selectCreditsByUserId(int merchandiserId);

    //根据核心企业id查询企业授信信息
    List<EnterpriseCredit> selectCreditsByEnterpriseId(int enterpriseId);


}
